package com.tan.chowder.login.constan;

public enum ResultCode {
    //成功
    SUCCESS(200,"success"),
    //失败
    FAIL(400,"error"),
    //未认证（签名错误）
    UNAUTHORIZED(401,"unauthorized"),
    //接口不存在
    NOT_FOUND(404,"not found"),
    //服务器内部错误
    INTERNAL_SERVER_ERROR(500,"internal server error");

    public int code;
    public String message;
    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
